package handler

import (
	"Short-url/models"
	"Short-url/util"
	"time"
)

// 添加
func Add(targetUrl string, expire time.Duration) {
	s := models.NewSnowflake()
	hash := util.DecToAny(s.NextVal())

	// 存入 redis 缓存
}